﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace CAATS_Registration
{
    public partial class VerifyInfo : System.Web.UI.Page
    {
        public Int32 m_nIdx;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
                return;
            string ii = Request.QueryString["from"];
            if (null == ii)
            {
                m_nIdx = -1;
            }
            else
                m_nIdx = Convert.ToInt32(ii);
            if (m_nIdx > 5)
                return;
            if (m_nIdx <= 0)
                return;
            Label_FullName.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strFullName;
            Label_Title.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strTitle;
            Label_School.Text = dataRecord.Instance().organization;
            Label_FullAddress.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strFullAddress;
            Label_StateOrganization.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strStateOrganization;
            Label_Phone.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strTel;
            Label_Fax.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strFax;
            Label_PassportNumber.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strEmail;
            Label_Email.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strpassportNumber;
            Label_DateOfIssue.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strDateofIssue;
            Label_DateOfExpiry.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strDateofExpiry;
            Label_PRCVisa.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strPRC;
            Label_Nationality.Text = dataRecord.Instance().m_listInfos[m_nIdx - 1]._strNationality;

        }
    }
}
